<template>
  <span v-if="text">
    {{ text }}
  </span>
  <span class="text-gray-400" v-else>{{ t('没有数据') }}</span>
</template>

<script setup lang="ts">
const { t } = useI18n();
defineProps<{
  text?: string | number;
}>();
</script>

<style lang="scss" scoped></style>
